package org.example;

public class TestResult {


    public static void forEach(int start,int end){
        int sum = 0;
        for (int i = start; i <= end; i++) {
            if (isPrimeNumber(i)) {
                sum++;
            }
        }
//        System.out.println("最终结果："+sum);
    }

    public static boolean isPrimeNumber(int num){
        for (int i = 0; i < num / 2; i++) {
            if (num/2==0)
                return false;
        }
        return true;
    }
}
